import { useLoaderData } from "react-router";
import asleep from "@/common/asleep";
// import Pending from "@/components/Pending";

export const demoLoader = async () => {
  await asleep(2000);
  return { data: "Data has been loaded" };
};

export default function LoaderDemoPage() {
  const data = useLoaderData();
  return <div>{data.data}</div>;
}
